<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="css/icons-extra.css" />
	</head>

	<body>

		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">功能</h1>
		</header>
		<div class="mui-content">
			<ul class="mui-table-view mui-grid-view mui-grid-9" id="ul1">

			</ul>
		</div>
	</body>
	<script src="js/mui.min.js"></script>
	<script src="js/public.js"></script>
	<script>
		

		mui.plusReady(function() {
			var createBy = localStorage.getItem("employeeid");
			mcheckemployee(createBy);
		});
		//判断是否是公司员工
		function mcheckemployee(createBy) {

			//检查员工是否进入了公司
				mui.ajax({
					url: 'http://113.71.26.27:8080/tpl/function/findemployee',
					async: true,
					type: 'post',
					timeout: 2000,
					data: {
						createBy: createBy
					},
					success: function(data) {
					
						if(data.companyId == null) {
							var gg = "<li class='mui-table-view-cell mui-media mui-col-xs-4'><a href='note.html'><span class='mui-icon-extra mui-icon-extra-order'></span><div class='mui-media-body'>便签</div></a></li>";
						} else {
							var gg = "<li class='mui-table-view-cell mui-media mui-col-xs-4'><a href='note.html'><span class='mui-icon-extra mui-icon-extra-order'></span><div class='mui-media-body'>便签</div></a></li>";
							gg += "<li class='mui-table-view-cell mui-media mui-col-xs-4'><a href='leave.html'><span class='mui-icon-extra mui-icon-extra-topic'></span><div class='mui-media-body'>请假</div></a></li><li class='mui-table-view-cell mui-media mui-col-xs-4'><a href='resource.html'><span class='mui-icon-extra mui-icon-extra-card'></span><div class='mui-media-body'>资源管理</div></a></li>";
						}
						document.getElementById("ul1").innerHTML = gg;
					}
				});
	
		}
	</script>

</html>